package com.ggb.smartstudy.entity;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author gefangjie
 */
@Data
public class Course {
    private Integer id;

    @NotBlank(message = "课程名称不能为空")
    @Size(max = 100, message = "课程名称长度不能超过100个字符")
    private String courseName;

    @Size(max = 65535, message = "课程描述长度不能超过65535个字符")
    private String description;

    @NotNull(message = "课程分类ID不能为空")
    private Integer categoryId;

    @NotNull(message = "教师ID不能为空")
    private Integer teacherId;

    private Timestamp createTime;
    private Timestamp updateTime;
}
